import Layout from '@/layout'
import twoLayout from '@/twoLayout'

export default {
  path: '/deviceManagement',
  name: 'deviceManagement',
  redirect: '/deviceManagement/personnelOrientation',
  component: Layout,
  alwaysShow: true,
  meta: {
    title: '设备管理',
    roles: ['user'],
    icon: 'bug'
  },
  children: [
    {
      path: 'personnelOrientation',
      name: 'personnelOrientation',
      component: () =>
        import(
          /* webpackChunkName: "deviceManagementPersonnelOrientation" */ '@/views/DeviceManagement/PersonnelOrientation/Device'
        ),
      meta: {
        title: '基站管理',
        roles: ['user']
      }
    },
    {
      path: 'accessControl',
      name: 'accessControl',
      component: () => import(/* webpackChunkName: "accessControlDevice" */ '@/views/DeviceManagement/AccessFaceDetect'),
      meta: {
        title: '门禁闸机管理',
        roles: ['user']
      }
    },
    {
      path: 'addSensor',
      name: 'addSensor',
      component: () => import(/* webpackChunkName: "sensorAddSensor" */ '@/views/DeviceManagement/Sensor/Sensor'),
      meta: {
        title: '环境监测设备',
        roles: ['user']
      }
    },
    // {
    // 	path: 'sensor',
    // 	name: 'sensor',
    // 	redirect: '/sensor/addSensor',
    // 	alwaysShow: true,
    // 	component: twoLayout,
    // 	meta: {
    // 		title: '环境检测设备'
    // 	},
    // 	children: [
    // 		{
    // 			path: 'addSensor',
    // 			name: 'addSensor',
    // 			component: () => import(/* webpackChunkName: "sensorAddSensor" */'@/views/DeviceManagement/Sensor/AddSensor'),
    // 			meta: {
    // 				title: '传感器基站管理'
    // 			}
    // 		},
    // 		{
    // 			path: 'bindingSensor',
    // 			name: 'bindingSensor',
    // 			component: () => import(/* webpackChunkName: "sensorBindingSensor" */'@/views/DeviceManagement/Sensor/BindingSensor'),
    // 			meta: {
    // 				showNav: true,
    // 				title: '传感器管理'
    // 			}
    // 		},
    // 		{
    // 			path: 'dispatch',
    // 			name: 'dispatch',
    // 			component: () => import(/* webpackChunkName: "sensorDispatch" */'@/views/DeviceManagement/Sensor/Dispatch'),
    // 			meta: {
    // 				showNav: true,
    // 				title: '调度管理'
    // 			}
    // 		},
    // 		{
    // 			path: 'warning',
    // 			name: 'warning',
    // 			component: () => import(/* webpackChunkName: "sensorWarning" */'@/views/DeviceManagement/Sensor/Warning'),
    // 			meta: {
    // 				showNav: true,
    // 				title: '报警设置'
    // 			}
    // 		}
    // 	]
    // },
    {
      path: 'videoSurveillance',
      name: 'videoSurveillance',
      component: () =>
        import(/* webpackChunkName: "videoSurveillanceBindingDevice" */ '@/views/DeviceManagement/VideoSurveillance'),
      meta: {
        title: '视频监控设备管理',
        roles: ['user']
      }
    },
    {
      path: 'safetyHat',
      name: 'safetyHat',
      component: () => import(/* webpackChunkName: "safetyHatBinding" */ '@/views/DeviceManagement/SafetyHat'),
      meta: {
        showNav: true,
        title: '安全帽设备管理',
        roles: ['user']
      }
    },
    // {
    //   path: 'faceDetect',
    //   name: 'FaceDetect',
    //   component: () => import(/* webpackChunkName: "configSetIp" */ '@/views/DeviceManagement/FaceDetect'),
    //   meta: {
    //     roles: ['user'],
    //     title: '人脸识别设备设置'
    //   }
    // }
  ]
}
